<script setup lang="ts">
import GrandsonCom from "@/components/grandsonCom.vue";

let msg: string = '子组件内容'

function getMsg() {
  console.log(msg)
}

defineExpose({msg, getMsg})
</script>

<template>
  son {{ msg }}
  <grandson-com></grandson-com>
</template>

<style scoped>

</style>
